package com.zhyz.bookstore.service;

import com.zhyz.bookstore.entity.Book;
import com.zhyz.bookstore.entity.Favorite;
import com.zhyz.bookstore.entity.User;

import java.util.List;

public interface ClientService {

    public User login(String username, String password);

    public boolean register(String username, String password, String name, String sex, String tel, String address);

    public List<Book> userbook();

    public List<Book> getCategoryBook(String cid);

    public void personInformation(String username, String name, String sex, String tel, String address);

    public void personPassword(String password, String username);

    public void addfavorite(String userId, String bookId);

    public List<Favorite> findFavoriteByUserId(User user);

    public boolean findFavorite(String userId, String bookId);

    public void delFavorite(String bookId);

    public Book findBookById(String bookId);
    public List<Book> search(String search);
}
